jQuery(document).ready(function($){

	// hide messages 
	$("#error").hide();
	$("#sent-form-msg").hide();
	
	// on submit...
	$("#LoginForm #submit").click(function() {
		$("#error").hide();
		
		//required:
		
		//username
		var username = $("input#username").val();
		if(username == ""){
			$("#error").fadeIn().text("Username required.");
			$("input#username").focus();
			return false;
		}
		// password
		var password = $("input#password").val();
		if(password == ""){
			$("#error").fadeIn().text("Password required");
			$("input#password").focus();
			return false;
		}

                    

        });  

});

